package heap;

/**
 * @author mubei
 * @date 2021/11/27
 * @description
 */
public class Demo01 {

    public static void main(String[] args) {
        //最大时电脑的1/4
        long max = Runtime.getRuntime().maxMemory();
        // 初始化的是1/64
        long totalMemory = Runtime.getRuntime().totalMemory();

//        System.out.println(max/1024/1024+"mb");
//        System.out.println(totalMemory/1024/1024+"mb");
    }
}
